﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    enum hours
    {
        六小时,
        八小时,
        十二小时,
        二十四小时
    }
    class DeliveryRobot : Robot
    {
        private hours hours;

        public override void Working()
        {
            Console.WriteLine("我是{0},我叫：{1}，我可以连续工作：{2}", RobotType.传菜机器人, this.Name, this.hours);
        }

        public hours Hours
        {
            get { return this.hours; }
            set { this.hours = value; }
        }
        public DeliveryRobot() { }
        public DeliveryRobot(string name, hours hours) : base(name)
        {
            this.hours = hours;
        }
    }
}
